.class public Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;
.super Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.source "PickerVideoHolder.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Les/qa;

.field private f:Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter$e;


# direct methods
.method public constructor <init>(Landroid/view/View;Lcom/esfile/screen/recorder/media/util/y;Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter$e;)V
    .locals 1
    .param p3    # Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter$e;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    invoke-direct {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;-><init>(Landroid/view/View;)V

    .line 2
    iput-object p3, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->f:Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter$e;

    .line 3
    sget p3, Les/x4;->picker_video_thumb:I

    invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/ImageView;

    iput-object p3, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->a:Landroid/widget/ImageView;

    .line 4
    invoke-virtual {p3}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p3

    .line 5
    invoke-virtual {p2}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v0

    iput v0, p3, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 6
    invoke-virtual {p2}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result p2

    iput p2, p3, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 7
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->a:Landroid/widget/ImageView;

    invoke-virtual {p2, p3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 8
    sget p2, Les/x4;->picker_video_select:I

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/TextView;

    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->b:Landroid/widget/TextView;

    .line 9
    sget p2, Les/x4;->picker_video_duration:I

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/TextView;

    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->c:Landroid/widget/TextView;

    .line 10
    sget p2, Les/x4;->picker_video_name:I

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->d:Landroid/widget/TextView;

    .line 11
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->a:Landroid/widget/ImageView;

    invoke-virtual {p1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 12
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->b:Landroid/widget/TextView;

    invoke-virtual {p1, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public a(Les/qa;I)V
    .locals 2

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->e:Les/qa;

    .line 2
    iget-object p2, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    invoke-virtual {p2}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object p2

    invoke-static {p2}, Lcom/esfile/recorder/a;->a(Landroid/content/Context;)Lcom/esfile/recorder/d;

    move-result-object p2

    .line 3
    invoke-virtual {p1}, Les/qa;->j()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Lcom/esfile/recorder/d;->a(Ljava/lang/String;)Lcom/esfile/recorder/c;

    move-result-object p2

    .line 4
    invoke-virtual {p2}, Lcom/esfile/recorder/c;->c()Lcom/esfile/recorder/c;

    move-result-object p2

    sget v0, Les/w4;->durec_local_video_placeholder:I

    .line 5
    invoke-virtual {p2, v0}, Lcom/esfile/recorder/c;->b(I)Lcom/esfile/recorder/c;

    move-result-object p2

    sget v0, Les/w4;->durec_local_video_placeholder:I

    .line 6
    invoke-virtual {p2, v0}, Lcom/esfile/recorder/c;->a(I)Lcom/esfile/recorder/c;

    move-result-object p2

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->a:Landroid/widget/ImageView;

    .line 7
    invoke-virtual {p2, v0}, Lcom/bumptech/glide/g;->a(Landroid/widget/ImageView;)Les/w3;

    .line 8
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->c:Landroid/widget/TextView;

    invoke-virtual {p1}, Les/qa;->c()J

    move-result-wide v0

    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/utils/t;->a(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 9
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->d:Landroid/widget/TextView;

    invoke-virtual {p1}, Les/qa;->l()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 10
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->f:Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter$e;

    invoke-interface {p2, p1}, Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter$e;->a(Les/qa;)I

    move-result p1

    const/4 p2, 0x1

    const/4 v0, -0x1

    if-eq p1, v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    if-eqz v0, :cond_1

    .line 11
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->b:Landroid/widget/TextView;

    add-int/2addr p1, p2

    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 12
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->b:Landroid/widget/TextView;

    const-string p2, ""

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 13
    :goto_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->b:Landroid/widget/TextView;

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setSelected(Z)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->b:Landroid/widget/TextView;

    if-eq p1, v0, :cond_0

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->a:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_1

    .line 2
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->f:Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter$e;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/holder/PickerVideoHolder;->e:Les/qa;

    invoke-interface {p1, v0}, Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter$e;->b(Les/qa;)Z

    :cond_1
    return-void
.end method
